import request from '@/pages/api/index'

/**
 * @param data 信息
 * @description 文章发布*
 * */
export function saveMessage(data) {
    return request.post("/umsMessage/save",data)
}

/**
 * 类别列表
 *
 * * * * */
export function typeList() {
    return request.get("/tags/all")
}

/**
 * 文章列表
 * */
export function articlesList(data) {
    return request.get("/articles/tagId",data)
}
/**
 * 文章详情
 * */
export function articlesDetail(id) {
    return request.get(`/articles/${id}?env=0`)
}

/**
 * message列表
 * * * */
export function messageList(wrapper) {
    return request.get("/umsMessage/list",wrapper)
}
/**
 * 根据messageId取图
 * * * */
export function getPhotoById(messageId) {
    return request.get("/tImage/getPhotoById",{messageId:messageId})
}